package com.desay.pangoo.itmt.config;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.context.MessageSource;
import org.springframework.stereotype.Component;

@Component
public class MessageSourceHandler {
	@Resource
	private HttpServletRequest request;
	@Resource
	private MessageSource messageSource;

	public String getMessage(String messageKey) {
		return messageSource.getMessage(messageKey, null, request.getLocale());
	}
}
